cd "/media/Environ/Compile/rocksndiamonds-4.1.4.1" && /usr/bin/gdb -- "./rocksndiamonds"
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./rocksndiamonds...done.
(gdb) r
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe3984700 (LWP 737)]
[New Thread 0x7fffe3943700 (LWP 738)]
[New Thread 0x7fffe1a9f700 (LWP 739)]
rocksndiamonds: frame delay == 60 ms (max. 16 fps / 33 %)

Thread 1 "rocksndiamonds" received signal SIGSEGV, Segmentation fault.
tcache_get (tc_idx=0) at malloc.c:2934
2934	malloc.c: No such file or directory.
(gdb) bt
#0  tcache_get (tc_idx=0) at malloc.c:2934
#1  __GI___libc_malloc (bytes=16) at malloc.c:3042
#2  0x00007ffff4bcc3ff in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007ffff4bcca88 in xcb_poll_for_special_event ()
   from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#4  0x00007fffe2b8084a in glPrimitiveBoundingBox ()
   from /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
#5  0x00007fffe2b809c4 in glPrimitiveBoundingBox ()
   from /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
#6  0x00007fffe2b828dd in glPrimitiveBoundingBox ()
   from /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
#7  0x00007fffe1fcd3be in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#8  0x00007fffe1fcdb45 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#9  0x00007fffe1fc8cb1 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#10 0x00007ffff7e312e9 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
#11 0x00005555557187c9 in UpdateScreenExt (rect=0x7fffffffd920, 
    with_frame_delay=1) at sdl.c:192
#12 0x00005555557188dd in UpdateScreen_WithFrameDelay (rect=0x7fffffffd920)
    at sdl.c:236
#13 0x0000555555719a75 in SDLCopyArea (src_bitmap=0x555559ac9110, 
    dst_bitmap=0x555559ad25e0, src_x=0, src_y=0, width=1920, height=1080, 
    dst_x=0, dst_y=0, mask_mode=0) at sdl.c:912
#14 0x00005555556f67d6 in sysCopyArea (src_bitmap=0x555559ac9110, 
--Type <RET> for more, q to quit, c to continue without paging-- c
    dst_bitmap=0x555559ad25e0, src_x=0, src_y=0, width=1920, height=1080, dst_x=0, dst_y=0, mask_mode=0) at system.c:525
#15 0x00005555556f74ac in BlitBitmap (src_bitmap=0x555559ac9110, dst_bitmap=0x555559ad25e0, src_x=0, src_y=0, width=1920, height=1080, dst_x=0, dst_y=0) at system.c:868
#16 0x000055555564cb48 in BackToFront () at tools.c:840
#17 0x0000555555646d88 in EventLoop () at events.c:362
#18 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdb48) at main.c:7762
(gdb) bt
#0  tcache_get (tc_idx=0) at malloc.c:2934
#1  __GI___libc_malloc (bytes=16) at malloc.c:3042
#2  0x00007ffff4bcc3ff in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007ffff4bcca88 in xcb_poll_for_special_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#4  0x00007fffe2b8084a in glPrimitiveBoundingBox () from /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
#5  0x00007fffe2b809c4 in glPrimitiveBoundingBox () from /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
#6  0x00007fffe2b828dd in glPrimitiveBoundingBox () from /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
#7  0x00007fffe1fcd3be in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#8  0x00007fffe1fcdb45 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#9  0x00007fffe1fc8cb1 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#10 0x00007ffff7e312e9 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
#11 0x00005555557187c9 in UpdateScreenExt (rect=0x7fffffffd920, with_frame_delay=1) at sdl.c:192
#12 0x00005555557188dd in UpdateScreen_WithFrameDelay (rect=0x7fffffffd920) at sdl.c:236
#13 0x0000555555719a75 in SDLCopyArea (src_bitmap=0x555559ac9110, dst_bitmap=0x555559ad25e0, src_x=0, src_y=0, width=1920, height=1080, dst_x=0, dst_y=0, mask_mode=0) at sdl.c:912
#14 0x00005555556f67d6 in sysCopyArea (src_bitmap=0x555559ac9110, dst_bitmap=0x555559ad25e0, src_x=0, src_y=0, width=1920, height=1080, dst_x=0, dst_y=0, mask_mode=0) at system.c:525
#15 0x00005555556f74ac in BlitBitmap (src_bitmap=0x555559ac9110, dst_bitmap=0x555559ad25e0, src_x=0, src_y=0, width=1920, height=1080, dst_x=0, dst_y=0) at system.c:868
#16 0x000055555564cb48 in BackToFront () at tools.c:840
#17 0x0000555555646d88 in EventLoop () at events.c:362
#18 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdb48) at main.c:7762
(gdb) # above when trying to quick load tape
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe3984700 (LWP 3774)]
[New Thread 0x7fffe3943700 (LWP 3775)]
[New Thread 0x7fffe1a9f700 (LWP 3776)]
rocksndiamonds: frame delay == 125 ms (max. 8 fps / 16 %)

Thread 1 "rocksndiamonds" received signal SIGSEGV, Segmentation fault.
0x00007ffff7901762 in _int_free (av=0x53700000537, p=0x55555b377120, have_lock=<optimized out>) at malloc.c:4294
4294	malloc.c: No such file or directory.
(gdb) bt
#0  0x00007ffff7901762 in _int_free (av=0x53700000537, p=0x55555b377120, have_lock=<optimized out>) at malloc.c:4294
#1  0x0000555555713b28 in checked_free (ptr=0x55555b377130) at misc.c:1275
#2  0x0000555555712b25 in setString (old_value=0x55555860c330 <tape+16>, new_value=0x55555c7792a0 "rnd_krystian_abramowicz") at misc.c:844
#3  0x00005555556eca43 in TapeErase () at tape.c:530
#4  0x000055555568771f in GameEnd () at game.c:4775
#5  0x000055555568761d in GameWon () at game.c:4722
#6  0x00005555556a7dbd in GameActionsExt () at game.c:11371
#7  0x00005555556a8485 in GameActions () at game.c:11625
#8  0x000055555567c8b9 in HandleGameActions () at screens.c:8369
#9  0x0000555555646d83 in EventLoop () at events.c:359
#10 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdb48) at main.c:7762
(gdb) # above was freeze at end of completing level, a popup happend and I quickly pressed enter
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe3984700 (LWP 6207)]
[New Thread 0x7fffe3943700 (LWP 6208)]
[New Thread 0x7fffe1a9f700 (LWP 6209)]
# above, completed level tape was saved, level compeltion status changed to green, no high score soved

[Thread 0x7fffe3943700 (LWP 6208) exited]
[Thread 0x7fffe3984700 (LWP 6207) exited]
[Thread 0x7fffe1a9f700 (LWP 6209) exited]
[Inferior 1 (process 6204) exited normally]
(gdb) # above, completed level tape was saved, level compeltion status changed to green, no high score soved
(gdb) 
(gdb) # ops spelling, typed soved meant saved
(gdb) r
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe3984700 (LWP 6790)]
[New Thread 0x7fffe3943700 (LWP 6791)]
[New Thread 0x7fffe1a9f700 (LWP 6792)]
[Thread 0x7fffe3943700 (LWP 6791) exited]
[Thread 0x7fffe3984700 (LWP 6790) exited]
[Thread 0x7fffe1a9f700 (LWP 6792) exited]
[Inferior 1 (process 6787) exited normally]
(gdb) r
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe3984700 (LWP 6863)]
[New Thread 0x7fffe3943700 (LWP 6864)]
[New Thread 0x7fffe1a9f700 (LWP 6865)]
rocksndiamonds: frame delay == 60 ms (max. 16 fps / 33 %)
rocksndiamonds: frame delay == 60 ms (max. 16 fps / 33 %)
rocksndiamonds: frame delay == 40 ms (max. 25 fps / 50 %)
rocksndiamonds: frame delay == 60 ms (max. 16 fps / 33 %)
rocksndiamonds: frame delay == 60 ms (max. 16 fps / 33 %)
rocksndiamonds: frame delay == 60 ms (max. 16 fps / 33 %)
rocksndiamonds: frame delay == 60 ms (max. 16 fps / 33 %)
rocksndiamonds: frame delay == 60 ms (max. 16 fps / 33 %)
free(): double free detected in tcache 2

Thread 1 "rocksndiamonds" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff78a2535 in __GI_abort () at abort.c:79
#2  0x00007ffff78f9508 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7a0428d "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff78ffc1a in malloc_printerr (str=str@entry=0x7ffff7a05f58 "free(): double free detected in tcache 2") at malloc.c:5341
#4  0x00007ffff79016fd in _int_free (av=0x7ffff7a3bc40 <main_arena>, p=0x555559b027c0, have_lock=<optimized out>) at malloc.c:4193
#5  0x0000555555713b28 in checked_free (ptr=0x555559b027d0) at misc.c:1275
#6  0x0000555555712b25 in setString (old_value=0x55555860c330 <tape+16>, new_value=0x55555c784ec0 "rnd_krystian_abramowicz") at misc.c:844
#7  0x00005555556eca43 in TapeErase () at tape.c:530
#8  0x000055555568771f in GameEnd () at game.c:4775
#9  0x000055555568761d in GameWon () at game.c:4722
#10 0x00005555556a7dbd in GameActionsExt () at game.c:11371
#11 0x00005555556a8485 in GameActions () at game.c:11625
#12 0x000055555567c8b9 in HandleGameActions () at screens.c:8369
#13 0x0000555555646d83 in EventLoop () at events.c:359
#14 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdb48) at main.c:7762
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe3984700 (LWP 12277)]
[New Thread 0x7fffe3943700 (LWP 12278)]
[New Thread 0x7fffe1a9f700 (LWP 12279)]
[Thread 0x7fffe3943700 (LWP 12278) exited]
[Thread 0x7fffe3984700 (LWP 12277) exited]
[Thread 0x7fffe1a9f700 (LWP 12279) exited]
[Inferior 1 (process 12273) exited normally]
(gdb) # above bt crash at completion of level after responding to box
(gdb) 
